package cn.com.cifi.mars.constant;

/**
 * 货值分析类型
 *
 */
public enum ValueOverallEnum {

    DYNAMIC("dynamic","动态版"),
    GETPRICE("getprice","大定价版"),
    STRATEG("strategy","战规版"),
    CASTDECISION("castdecision","投资版"),
    STRINVESTMENT("strInvestment","土储货值投资口径"),
    HKSOILSTORAGE("hKsoilstorage","土储货值香港口径"),
    SOILSTORAGE("soilstorage","未开工货值"),
    NOTPROGRESS("notprogress","已开工未达形象进度"),
    ALREADYPROGRESS("alreadyProgress","已达形象进度未取证"),
    TOTALPROGRESS("totalProgress","在途货值合计"),
    AGE0TO3("age0to3","90天以内"),
    AGE3TO6("age3to6","90 ~ 180天"),
    AGE6TO12("age6to12","180 ~ 360天"),
    AGE12TO24("age12to24","360 ~ 720天"),
    AGEGT24("agegt24","720天以上"),
    EXISTINGHOMES("existingHomes","现房库存"),
    FORWARDHOUSE("forwardHouse","期房库存"),
    ;

    private String key;
    private String value;

    ValueOverallEnum(String key,String value) {
        this.key = key;
        this.value = value;
    }


    public static String getValueByKey(String key){
        for(OrgTypeEunm versionTypeEunm:OrgTypeEunm.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }
}
